package javase2.day06.demo01;

public class Demo01GetNameThread {
    public static void main(String[] args) {
        ThreadZi threadZi = new ThreadZi();
        threadZi.start();

        new ThreadZi().start();
        new ThreadZi().start();
        new ThreadZi().start();

        //链式编程：获取主线程名称
        System.out.println(Thread.currentThread().getName());//main


    }
}
